/*  1:   */ package gcs.com.servlet;
/*  2:   */ 
/*  3:   */ import gcs.com.staticValue.StaticValue;
/*  4:   */ import java.io.IOException;
/*  5:   */ import java.io.PrintWriter;
/*  6:   */ import javax.servlet.ServletException;
/*  7:   */ import javax.servlet.http.HttpServlet;
/*  8:   */ import javax.servlet.http.HttpServletRequest;
/*  9:   */ import javax.servlet.http.HttpServletResponse;
/* 10:   */ 
/* 11:   */ public class ConfigServlet
/* 12:   */   extends HttpServlet
/* 13:   */ {
/* 14:   */   private static final long serialVersionUID = 5942798723720100973L;
/* 15:   */   
/* 16:   */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/* 17:   */     throws ServletException, IOException
/* 18:   */   {
/* 19:19 */     response.setContentType("text/html");
/* 20:20 */     response.setCharacterEncoding("UTF-8");
/* 21:21 */     PrintWriter out = null;
/* 22:22 */     String returnStr = "";
/* 23:   */     try
/* 24:   */     {
/* 25:24 */       String url = request.getParameter("url");
/* 26:25 */       String namspace = request.getParameter("ns");
/* 27:26 */       StaticValue.setWebserviceNameSpace(namspace);
/* 28:27 */       StaticValue.setWebserviceUrl(url);
/* 29:28 */       out = response.getWriter();
/* 30:29 */       returnStr = "设置成功！";
/* 31:   */     }
/* 32:   */     catch (Exception e)
/* 33:   */     {
/* 34:31 */       e.printStackTrace();
/* 35:32 */       returnStr = e.getMessage();
/* 36:   */     }
/* 37:   */     finally
/* 38:   */     {
/* 39:34 */       out.write(returnStr);
/* 40:35 */       out.flush();
/* 41:36 */       out.close();
/* 42:   */     }
/* 43:   */   }
/* 44:   */   
/* 45:   */   public void doPost(HttpServletRequest request, HttpServletResponse response)
/* 46:   */     throws ServletException, IOException
/* 47:   */   {
/* 48:42 */     doGet(request, response);
/* 49:   */   }
/* 50:   */ }


/* Location:           C:\Users\zhoubo\Desktop\classes\
 * Qualified Name:     gcs.com.servlet.ConfigServlet
 * JD-Core Version:    0.7.0.1
 */